//
//  BuyTodayCell.m
//  WuJieLive
//
//  Created by 张瀚坤 on 2017/11/13.
//  Copyright © 2017年 zhk. All rights reserved.
//

#import "BuyTodayCell.h"

@implementation BuyTodayCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)bindDataWithModelArray:(NSArray *)modelArray
{
    ActivesModel * model1 = modelArray[0];
    [self.leftFirstBtn sd_setBackgroundImageWithURL:[NSURL URLWithString:model1.banner_img] forState:(UIControlStateNormal)];
    [self.leftFirstBtn setTitle:model1.title forState:(UIControlStateNormal)];
    [self.leftFirstBtn addTarget:self action:@selector(leftFirstAction) forControlEvents:(UIControlEventTouchUpInside)];
    
    ActivesModel * model2 = modelArray[1];
    [self.rightFirstBtn sd_setBackgroundImageWithURL:[NSURL URLWithString:model2.banner_img] forState:(UIControlStateNormal)];
    [self.rightFirstBtn setTitle:model2.title forState:(UIControlStateNormal)];
    [self.rightFirstBtn addTarget:self action:@selector(rightFirstAction) forControlEvents:(UIControlEventTouchUpInside)];

    ActivesModel * model3 = modelArray[2];
    [self.leftSecondBtn sd_setBackgroundImageWithURL:[NSURL URLWithString:model3.banner_img] forState:(UIControlStateNormal)];
    [self.leftSecondBtn setTitle:model3.title forState:(UIControlStateNormal)];
    [self.leftSecondBtn addTarget:self action:@selector(leftSecondAction) forControlEvents:(UIControlEventTouchUpInside)];

    ActivesModel * model4 = modelArray[3];
    [self.rightSecondBtn sd_setBackgroundImageWithURL:[NSURL URLWithString:model4.banner_img] forState:(UIControlStateNormal)];
    [self.rightSecondBtn setTitle:model4.title forState:(UIControlStateNormal)];
    [self.rightSecondBtn addTarget:self action:@selector(rightSecondAction) forControlEvents:(UIControlEventTouchUpInside)];
}

- (void)leftFirstAction
{
    
}

- (void)rightFirstAction
{
    
}

- (void)leftSecondAction
{
    
}

- (void)rightSecondAction
{
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
